package com.yugao.fintech.libra.shortlink.model.rqrs;

import com.yugao.fintech.framework.validation.group.UpdateGroup;
import com.yugao.fintech.libra.common.constants.ValidationCons;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 域名
 */
@Getter
@Setter
public class DomainReq {
    @NotNull(message = ValidationCons.NOT_EMPTY, groups = UpdateGroup.class)
    private Long id;

    /**
     * 用户自己绑定的域名
     */
    private Long userId;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @URL(message = "请输入正确的域名")
    private String domain;
}
